home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / admin / linuxcon.6 / linuxcon / usr / lib / linuxconf / mailconf / rulesets.s0.remote.cf < prev    next >
Encoding:
Text File  |  1996-08-04  |  1.2 KB  |  36 lines

  1.  
  2. # not local -- try mailer table lookup
  3. R$* <@ $+ > $*        $: < $2 > $1 < @ $2 > $3    extract host name
  4. R< $+ . > $*        $: < $1 > $2            strip trailing dot
  5. R< $+ > $*        $: < $(mailertable $1 $) > $2    lookup
  6. R< $- : $+ > $*        $# $1 $@ $2 $: $3        check -- resolved?
  7. R< $+ > $*        $: $>90 <$1> $2            try domain
  8.  
  9. # resolve locally connected UUCP links
  10. R$* < @ $=Z . UUCP. > $*    $#uucp-uudom $@ $2 $: $1 < @ $2 .UUCP. > $3
  11. R$* < @ $=Y . UUCP. > $*    $#uucp-new $@ $2 $: $1 < @ $2 .UUCP. > $3
  12. R$* < @ $=U . UUCP. > $*    $#uucp-old $@ $2 $: $1 < @ $2 .UUCP. > $3
  13.  
  14.  
  15. # resolve fake top level domains by forwarding to other hosts
  16. R$*<@$+.BITNET.>$*    $: $>95 < $B > $1 <@$2.BITNET.> $3    user@host.BITNET
  17.  
  18. # forward non-local UUCP traffic to our UUCP relay
  19. R$*<@$*.UUCP.>$*        $: $>95 < $Y > $1 <@$2.UUCP.> $3    uucp mail
  20.  
  21.  
  22. # pass names that still have a host to a smarthost (if defined)
  23. R$* < @ $* > $*        $: $>95 < $S > $1 < @ $2 > $3    glue on smarthost name
  24.  
  25. # deal with other remote names
  26. R$* < @$* > $*        $#smtp $@ $2 $: $1 < @ $2 > $3        user@host.domain
  27.  
  28. # if this is quoted, strip the quotes and try again
  29. R$+            $: $(dequote $1 $)        strip quotes
  30. R$+ $=O $+        $@ $>97 $1 $2 $3            try again
  31.  
  32. # handle locally delivered names
  33. R$=L            $#local $: @ $1            special local names
  34. R$+            $#local $: $1            regular local names
  35.  
  36.